package com.buer.storage.business.service;

import com.buer.storage.business.domain.Dorder;
import com.buer.storage.business.domain.Stock;
import com.buer.storage.business.dto.DorderDto;
import com.buer.storage.business.dto.OutStorageAllDto;
import com.buer.storage.business.dto.OutStorageDto;

import java.util.List;

public interface DorderService {

    //查询所有库存
    List<Stock> findStock();
    //查询所有库存
    List<Dorder> selectByAll(String dorderNum, Integer dtypeId, String prodName, String beginTime, String endTime);


    //增加入库
    int insert(OutStorageDto outStorageDto);

    //查询订单
    List<DorderDto> findOrderAll();

    //根据订单id删除订单信息
    int deleteOutStorageById(int outId);

    //根据装备表id删除商品信息
    int deleteDorderdetails(int deliveryId);

    //查询入库表
    List<OutStorageAllDto> findOutAll(int outId);
    //更新商品
    int updateDorderdetails(OutStorageDto outStorageDto);

    int submitAddBuerStock(int outId);

}
